<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="format-detection" content="telephone=no"/>
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=3, minimum-scale=1, width=device-width"/>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css"/>
    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
    <script type="text/javascript">
     document.addEventListener("deviceready", function() {
      appintance = new app();
        alert('deviceready');
        console.log(navigator.camera);
     }, true); 
</script>
<title>Corodva QQ Plugin Exmaple</title>
</head>
<body>
    <div class="app">
        <div id="deviceready">
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.checkClientInstalled()">检查客户端是否安装</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.ssoLogin()">QQ登录</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.logout()">QQ登出</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareText()">文本分享</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareImage()">网络图片分享</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareLocalImage()">拍照分享图片</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareBase64Image()">Base64图片分享</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareNews()">新闻分享</button>
          <button type="button" class="btn btn-primary btn-block" onclick="appintance.shareAudio()">音乐分享</button>
        </div>
      </div>
    </body>
    </html>
